package com.fang;

import java.util.concurrent.Callable;

public class Test1 {
    public static void main(String[] args) {
//        new Thread().start();
        // 获取CPU的核数
        // CPU密集型，IO密集型
        System.out.println(Runtime.getRuntime().availableProcessors());

        // 线程状态查看
//        Thread.State;

        try {
            Thread.sleep(10);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        try {
            new Test1().wait();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
